<?php

/**
 * Created by PhpStorm.
 * User: Anh Nguyen
 * Date: 3/9/14
 * Time: 3:12 PM
 */
class MY_Session extends CI_Session
{

    public function storeObject($item, $val)
    {
        $_SESSION[$item] = serialize($val);
    }

    public function getObject($item)
    {
        if (isset($_SESSION[$item])) {

            return unserialize($_SESSION[$item]);
        }

        return false;
    }

}